package com.dong.ioc.annotation;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * description
 *
 * @author Administrator 2021/09/02 10:30
 */
@Component
public class MyValueConfiguration {

    private String name;

    public MyValueConfiguration(@Value("#{systemProperties['my.name'] + 'Test'}") String name) {
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "MyValueConfiguration{" +
                "name='" + name + '\'' +
                '}';
    }
}
